package com.neuedu.mblog.controller;

import com.neuedu.mblog.service.UserService;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.io.IOException;
import java.sql.SQLException;

/**
 * 项目：his
 * 创建时间：  2021/12/14   11:02
 * 作者 :jshand
 * 描述 : ${dc}
 */
@WebServlet(name = "LoginServlet",urlPatterns = "/login")
public class LoginController extends BaseController {

    UserService userService = new UserService();

    @Override
    protected void list(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, SQLException {
       boolean success = userService.login(request);
       super.jsonResult(response,success);
    }
}
